package com.hands.commen.entity.wx;



import java.io.Serializable;

/**
 * 类的描述:   消息结构
 * 项目名称:   SmartLifeHost
 * 类的包名:   com.smart.life.host.entity
 * 创建的人:   nongzike@163.com
 * 创建时间:   2019/8/22 8:53
 * 修改的人:   nongzike@163.com
 * 修改时间:   2019/8/22 8:53
 * 修改备注:
 * version   v1.0
 */
//@JsonIgnoreProperties(ignoreUnknown = true) //注册忽略特性
//@JsonPropertyOrder({"header", "body"})//指定输出顺序
public class MsgEntity<T> implements Serializable {


    private MsgHeader header;


    private T body;

    public MsgEntity() {
    }

    public MsgEntity(MsgHeader header, T body) {
        this.header = header;
        this.body = body;
    }

    public MsgHeader getHeader() {
        return header;
    }

    public void setHeader(MsgHeader header) {
        this.header = header;
    }

    public T getBody() {
        return body;
    }

    public void setBody(T body) {
        this.body = body;
    }


    @Override
    public String toString() {
        return "MsgEntity{" +
                "header=" + header +
                ", body=" + body +
                '}';
    }
}
